Blockly.Blocks['1635506187415'] = {
  init: function() {
    this.jsonInit({
      "type": "1635506187415",
      "message0": "Forwalk02L",
      "previousStatement": null,
      "nextStatement": null,
      "colour": '#C643F1',
      "toolip": "",
      "helpUrl": ""
    });
  }
};

Blockly.Lua['1635506187415'] = function(block) {
  var code = "MOTOsetspeed(30)\nMOTOrigid16(30,30,30,55,85,100,90,50,30,30,30,75,85,100,90,70)\nMOTOrigid16(30,30,30,30,30,30,30,30,30,30,30,65,75,80,75,65)\n\n\n-- 启动\nMOTOsetspeed(15)\nMOTOmove19(80, 35, 100, 85, 91, 50, 128, 88, 120, 165, 100, 95, 117, 168, 62, 90, 128, 71, 100)\nMOTOwait()\n\n\n-- 2\nMOTOmove19(80, 35, 100, 88, 91, 48, 129, 88, 120, 165, 100, 94, 107, 146, 76, 87, 128, 71, 100)\nMOTOwait()\nMOTOrigid16(30,30,30,50,55,50,50,50,30,30,30,75,85,100,90,70)\n\n\n-- 2\n\n\n-- SPEED 30\n\n\n-- MOTORA,90,90,105,125,114\n\n\n-- MOTORB,113,76,146,93,94\n\n\n-- MOTORC,90,35,80\n\n\n-- MOTORD,110,35,80\n\n\n-- WAIT\n\n\n-- 迈左脚\nMOTOrigid16(30,30,30,50,55,50,50,50,30,30,30,75,85,100,90,70)\n\n\n-- 4\nMOTOsetspeed(30)\nMOTOmove19(80, 35, 90, 86, 113, 37, 156, 88, 120, 165, 90, 94, 107, 146, 77, 89, 128, 71, 100)\nMOTOwait()\nMOTOrigid16(30,30,30,45,45,45,45,45,30,30,30,45,65,65,65,45)\n\n\n-- 左脚迈出2\nMOTOsetspeed(20)\nMOTOmove19(80, 35, 90, 86, 113, 37, 156, 88, 120, 165, 90, 94, 110, 138, 83, 89, 128, 71, 100)\nMOTOwait()\nMOTOsetspeed(10)\nMOTOmove19(80, 35, 90, 97, 113, 37, 156, 95, 120, 165, 90, 100, 110, 138, 88, 100, 128, 71, 100)\nMOTOwait()\nMOTOmove19(80, 30, 75, 100, 108, 55, 137, 100, 120, 170, 75, 100, 132, 154, 89, 100, 128, 71, 100)\nMOTOwait()\n";
  return code;
}

